Determining forward pointing direction of a handheld device

ABSTRACT

A forward pointing direction associated with a handheld device is estimated or determined by, for example, calculating a center of rotation of the device. A resultant combined or selected bias estimate may then be used to compensate the biased output of the sensor in, e.g., a 3D pointing device.

RELATED APPLICATIONS

This application is a Continuation of U.S. patent application Ser. No. 13/701,156, filed on Dec. 20, 2012, now U.S. Pat. No. 9,201,516 issued on Dec. 1, 2015, which is the National Stage of International Application No. PCT/US2011/039047, filed on Jun. 3, 2011, which is related to, and claims priority from, U.S. Provisional Patent Application No. 61/351,108, filed on Jun. 3, 2010, entitled “Method of Computing a Dynamic Forward Direction”, the disclosures of which are incorporated here by reference.

BACKGROUND

The present invention describes forward pointing determination techniques, systems, software and devices, which can be used in 3D pointing devices, as well as in other types of devices.

Technologies associated with the communication of information have evolved rapidly over the last several decades. Television, cellular telephony, the Internet and optical communication techniques (to name just a few things) combine to inundate consumers with available information and entertainment options. Taking television as an example, the last three decades have seen the introduction of cable television service, satellite television service, pay-per-view movies and video-on-demand. Whereas television viewers of the 1960s could typically receive perhaps four or five over-the-air TV channels on their television sets, today's TV watchers have the opportunity to select from hundreds, thousands, and potentially millions of channels of shows and information. Video-on-demand technology, currently used primarily in hotels and the like, provides the potential for in-home entertainment selection from among thousands of movie titles.

The technological ability to provide so much information and content to end users provides both opportunities and challenges to system designers and service providers. One challenge is that while end users typically prefer having more choices rather than fewer, this preference is counterweighted by their desire that the selection process be both fast and simple. Unfortunately, the development of the systems and interfaces by which end users access media items has resulted in selection processes which are neither fast nor simple. Consider again the example of television programs. When television was in its infancy, determining which program to watch was a relatively simple process primarily due to the small number of choices. One would consult a printed guide which was formatted, for example, as series of columns and rows which showed the correspondence between (1) nearby television channels, (2) programs being transmitted on those channels and (3) date and time. The television was tuned to the desired channel by adjusting a tuner knob and the viewer watched the selected program. Later, remote control devices were introduced that permitted viewers to tune the television from a distance. This addition to the user-television interface created the phenomenon known as “channel surfing” whereby a viewer could rapidly view short segments being broadcast on a number of channels to quickly learn what programs were available at any given time.

Despite the fact that the number of channels and amount of viewable content has dramatically increased, the generally available user interface, control device options and frameworks for televisions has not changed much over the last 30 years. Printed guides are still the most prevalent mechanism for conveying programming information. The multiple button remote control with up and down arrows is still the most prevalent channel/content selection mechanism. The reaction of those who design and implement the TV user interface to the increase in available media content has been a straightforward extension of the existing selection procedures and interface objects. Thus, the number of rows in the printed guides has been increased to accommodate more channels. The number of buttons on the remote control devices has been increased to support additional functionality and content handling, e.g., as shown in FIG. 1. However, this approach has significantly increased both the time required for a viewer to review the available information and the complexity of actions required to implement a selection. Arguably, the cumbersome nature of the existing interface has hampered commercial implementation of some services, e.g., video-on-demand, since consumers are resistant to new services that will add complexity to an interface that they view as already too slow and complex.

In addition to increases in bandwidth and content, the user interface bottleneck problem is being exacerbated by the aggregation of technologies. Consumers are reacting positively to having the option of buying integrated systems rather than a number of segregable components. An example of this trend is the combination television/VCR/DVD in which three previously independent components are frequently sold today as an integrated unit. This trend is likely to continue, potentially with an end result that most if not all of the communication devices currently found in the household will be packaged together as an integrated unit, e.g., a television/VCR/DVD/internet access/radio/stereo unit. Even those who continue to buy separate components will likely desire seamless control of, and interworking between, the separate components. With this increased aggregation comes the potential for more complexity in the user interface. For example, when so-called “universal” remote units were introduced, e.g., to combine the functionality of TV remote units and VCR remote units, the number of buttons on these universal remote units was typically more than the number of buttons on either the TV remote unit or VCR remote unit individually. This added number of buttons and functionality makes it very difficult to control anything but the simplest aspects of a TV or VCR without hunting for exactly the right button on the remote. Many times, these universal remotes do not provide enough buttons to access many levels of control or features unique to certain TVs. In these cases, the original device remote unit is still needed, and the original hassle of handling multiple remotes remains due to user interface issues arising from the complexity of aggregation. Some remote units have addressed this problem by adding “soft” buttons that can be programmed with the expert commands. These soft buttons sometimes have accompanying LCD displays to indicate their action. These too have the flaw that they are difficult to use without looking away from the TV to the remote control. Yet another flaw in these remote units is the use of modes in an attempt to reduce the number of buttons. In these “moded” universal remote units, a special button exists to select whether the remote should communicate with the TV, DVD player, cable set-top box, VCR, etc. This causes many usability issues including sending commands to the wrong device, forcing the user to look at the remote to make sure that it is in the right mode, and it does not provide any simplification to the integration of multiple devices. The most advanced of these universal remote units provide some integration by allowing the user to program sequences of commands to multiple devices into the remote. This is such a difficult task that many users hire professional installers to program their universal remote units.

Some attempts have also been made to modernize the screen interface between end users and media systems. However, these attempts typically suffer from, among other drawbacks, an inability to easily scale between large collections of media items and small collections of media items. For example, interfaces which rely on lists of items may work well for small collections of media items, but are tedious to browse for large collections of media items. Interfaces which rely on hierarchical navigation (e.g., tree structures) may be speedier to traverse than list interfaces for large collections of media items, but are not readily adaptable to small collections of media items. Additionally, users tend to lose interest in selection processes wherein the user has to move through three or more layers in a tree structure. For all of these cases, current remote units make this selection processor even more tedious by forcing the user to repeatedly depress the up and down buttons to navigate the list or hierarchies. When selection skipping controls are available such as page up and page down, the user usually has to look at the remote to find these special buttons or be trained to know that they even exist. Accordingly, organizing frameworks, techniques and systems which simplify the control and screen interface between users and media systems as well as accelerate the selection process, while at the same time permitting service providers to take advantage of the increases in available bandwidth to end user equipment by facilitating the supply of a large number of media items and new services to the user have been proposed in U.S. patent application Ser. No. 10/768,432, filed on Jan. 30, 2004, entitled “A Control Framework with a Zoomable Graphical User Interface for Organizing, Selecting and Launching Media Items”, the disclosure of which is incorporated here by reference.

Of particular interest for this specification are the remote devices usable to interact with such frameworks, as well as other applications and systems. As mentioned in the above-incorporated application, various different types of remote devices can be used with such frameworks including, for example, trackballs, “mouse”-type pointing devices, light pens, etc. However, another category of remote devices which can be used with such frameworks (and other applications) is 3D pointing devices. The phrase “3D pointing” is used in this specification to refer to the ability of an input device to move in three (or more) dimensions in the air in front of, e.g., a display screen, and the corresponding ability of the user interface to translate those motions directly into user interface commands, e.g., movement of a cursor on the display screen. The transfer of data between the 3D pointing device may be performed wirelessly or via a wire connecting the 3D pointing device to another device. Thus “3D pointing” differs from, e.g., conventional computer mouse pointing techniques which use a surface, e.g., a desk surface or mousepad, as a proxy surface from which relative movement of the mouse is translated into cursor movement on the computer display screen. An example of a 3D pointing device can be found in U.S. Pat. No. 7,158,118 to Matthew G. Liberty (hereafter referred to as the '118 patent), the disclosure of which is incorporated here by reference.

Pointing devices, such as a laser pointer or the exemplary 3D pointing devices described in the '118 patent, typically have a forward direction of pointing that is determined or indicated by their mechanical product design or form factors. For example, the housing associated with the 3D pointing device can be designed such that a user will typically grasp the device in a predetermined way, such that a particular point or locus of points associated with a predetermined “front” of the device will generally be pointed at a screen or display to control movement of a cursor. However, despite designs which are intended to motivate users to hold the pointing devices in a predetermined way, some users may not uniformly hold these devices in the predetermined manner and the actual, forward pointing direction of the device may then differ in operation from its designed forward pointing direction. To the extent that the designed forward pointing direction is assumed to be the actual forward pointing direction, e.g., for various processing of algorithms to determine cursor movement or other factors, this unanticipated usage of the pointing device may introduce inaccuracies into the cursor movement or may require other tracking or compensation.

Accordingly, there is still room for improvement in the area of handheld device design, generally, and 3D pointer design, more specifically.

SUMMARY

A forward pointing direction associated with a handheld device is estimated or determined by, for example, calculating a center of rotation of the device. A resultant combined or selected bias estimate may then be used to compensate the biased output of the sensor in, e.g., a 3D pointing device.

According to an exemplary embodiment, a method for determining a forward pointing direction of a device includes the steps of: receiving, by a processor, sensor outputs associated with linear acceleration and angular velocity of the device, and determining, by the processor, the forward pointing direction of the device using the linear acceleration and angular velocity. The method can further include the step of computing a center of rotation of the device and using the center of rotation to determine the forward pointing direction of the device.

According to another exemplary embodiment, a device includes an accelerometer for sensing an acceleration of the device and outputting at least one acceleration output associated therewith, at least one angular velocity sensor for sensing rotation of the device and outputting at least one angular velocity output associated therewith, and a processing unit for processing the acceleration output and the at least one angular velocity output to determine a forward pointing direction of the device.

According to another embodiment, a device includes an accelerometer configured to sense an acceleration of the device and to output at least one acceleration output associated therewith, and at least one sensor configured to sense rotation of the device and to output at least one angular velocity output associated therewith, and a processing unit configured to process the acceleration output and the at least one angular velocity output to determine a forward pointing direction of the device, wherein the determination of the forward pointing direction of the device is based on a calculation of a center of rotation of said device using the processed outputs and a gravitational constant, wherein the calculation uses: an angular velocity matrix based upon the angular velocity output; an angular acceleration matrix based upon the angular velocity output; a direction cosine matrix based upon the angular velocity matrix and the angular acceleration matrix for defining the device frame of reference relative to an earth frame of reference; and a linear acceleration based on the acceleration output.

According to yet another exemplary embodiment, a device includes an accelerometer, at least one other sensor, and a processor configured to estimate a direction cosine matrix which defines a body frame of reference of the device relative to a user frame of reference of the device using outputs from the accelerometer and the at least one other sensor. The at least one other sensor can, for example, be a magnetometer, a gyroscope, a rotational sensor or any combination of these sensors.

According to yet another exemplary embodiment, a system includes an accelerometer, at least one other sensor, and a processor configured to estimate a direction cosine matrix which defines a body frame of reference of the device relative to a user frame of reference of the device using outputs from the accelerometer and the at least one other sensor. The at least one other sensor can, for example, be a magnetometer, a gyroscope, a rotational sensor or any combination of these sensors. The accelerometer and the at least one other sensor can be disposed in a housing of a handheld device. The processor can be located in the same housing within the handheld device or can be disposed in another device, e.g., a system controller or a game console, and can then receive outputs from the accelerometer and the at least one other sensor from which the direction cosine matrix (or other parameter which is usable to determine a forward pointing direction of the handheld device) is calculated.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings illustrate exemplary embodiments, wherein:

FIG. 1 depicts a conventional remote control unit for an entertainment system;

FIG. 2 depicts an exemplary media system in which exemplary embodiments can be implemented;

FIG. 3 shows a 3D pointing device according to an exemplary embodiment of the present invention;

FIG. 4 illustrates a cutaway view of the 3D pointing device in FIG. 4 including two rotational sensors and one accelerometer;

FIG. 5 shows a 3D pointing device according to another exemplary embodiment;

FIG. 6 depicts the 3D pointing device of FIG. 5 being used as part of a “10 foot” interface according to an exemplary embodiment;

FIG. 7 depicts an exemplary relationship between a user frame of reference, a center of rotation, and a body frame of reference which can be used in determining a forward pointing direction according to an embodiment;

FIG. 8 is a flowchart illustrating an exemplary method for determining a forward pointing direction according to an embodiment; and

FIG. 9 illustrates hardware elements of a 3D pointing device according to an exemplary embodiment.

DETAILED DESCRIPTION

The following detailed description of the invention refers to the accompanying drawings. The same reference numbers in different drawings identify the same or similar elements. Also, the following detailed description does not limit the invention. Instead, the scope of the invention is defined by the appended claims.

Exemplary embodiments enable devices, e.g., pointing devices or 3D pointing devices (including devices which may have as one auxiliary function to operate to provide a pointing input, e.g., remote controls, mobile phones, handheld computing devices, etc.) to automatically and dynamically determine an optimal forward direction of pointing based upon how the operator uses the device. By determining the forward direction dynamically, the device's performance can be improved. The system interprets how each operator uses the device rather than relying solely on an inflexible, predetermined design. However it should be noted that such embodiments can be used in conjunction with mechanical designs which also indicate to a user a preferred (or potential) forward pointing direction, while also being useful in devices having mechanical designs without an obvious forward pointing direction, e.g., a spherically shaped (ball) housing.

Prior to discussing these exemplary embodiments in detail, and in order to provide some context for this discussion, an exemplary aggregated media system 200 in which the present invention can be implemented will first be described with respect to FIG. 2. Those skilled in the art will appreciate, however, that the present invention is not restricted to implementation in this type of media system and that more or fewer components can be included therein. Therein, an input/output (I/O) bus 210 connects the system components in the media system 200 together. The I/O bus 210 represents any of a number of different of mechanisms and techniques for routing signals between the media system components. For example, the I/O bus 210 may include an appropriate number of independent audio “patch” cables that route audio signals, coaxial cables that route video signals, two-wire serial lines or infrared or radio frequency transceivers that route control signals, optical fiber or any other routing mechanisms that route other types of signals.

In this exemplary embodiment, the media system 200 includes a television/monitor 212, a video cassette recorder (VCR) 214, digital video disk (DVD) recorder/playback device 216, audio/video tuner 218 and compact disk player 220 coupled to the I/O bus 210. The VCR 214, DVD 216 and compact disk player 220 may be single disk or single cassette devices, or alternatively may be multiple disk or multiple cassette devices. They may be independent units or integrated together. In addition, the media system 200 includes a microphone/speaker system 222, video camera 224 and a wireless I/O control device 226. According to exemplary embodiments of the present invention, the wireless I/O control device 226 is a 3D pointing device according to one of the exemplary embodiments described below. The wireless I/O control device 226 can communicate with the entertainment system 200 using, e.g., an IR or RF transmitter or transceiver. Alternatively, the I/O control device can be connected to the entertainment system 200 via a wire.

The entertainment system 200 also includes a system controller 228. According to one exemplary embodiment of the present invention, the system controller 228 operates to store and display entertainment system data available from a plurality of entertainment system data sources and to control a wide variety of features associated with each of the system components. As shown in FIG. 2, system controller 228 is coupled, either directly or indirectly, to each of the system components, as necessary, through I/O bus 210. In one exemplary embodiment, in addition to or in place of I/O bus 210, system controller 228 is configured with a wireless communication transmitter (or transceiver), which is capable of communicating with the system components via IR signals or RF signals. Regardless of the control medium, the system controller 228 is configured to control the media components of the media system 200 via a graphical user interface described below.

As further illustrated in FIG. 2, media system 200 may be configured to receive media items from various media sources and service providers. In this exemplary embodiment, media system 200 receives media input from and, optionally, sends information to, any or all of the following sources: cable broadcast 230, satellite broadcast 232 (e.g., via a satellite dish), very high frequency (VHF) or ultra high frequency (UHF) radio frequency communication of the broadcast television networks 234 (e.g., via an aerial antenna), telephone network 236 and cable modem 238 (or another source of Internet content). Those skilled in the art will appreciate that the media components and media sources illustrated and described with respect to FIG. 2 are purely exemplary and that media system 200 may include more or fewer of both. For example, other types of inputs to the system include AM/FM radio and satellite radio.

More details regarding this exemplary entertainment system and frameworks associated therewith can be found in the above-incorporated by reference U.S. Patent Application “A Control Framework with a Zoomable Graphical User Interface for Organizing, Selecting and Launching Media Items”. Alternatively, remote devices in accordance with the present invention can be used in conjunction with other systems, for example computer systems including, e.g., a display, a processor and a memory system or with various other systems and applications.

As mentioned in the Background section, remote devices which operate as 3D pointers are of particular interest for the present specification, although embodiments are not limited to implementation in 3D pointing devices. Such 3D pointing devices enable the translation of movement, e.g., gestures or pointing, into commands to a user interface. An exemplary 3D pointing device 400 is depicted in FIG. 3. Therein, user movement of the 3D pointing can be defined, for example, in terms of a combination of x-axis attitude (roll), y-axis elevation (pitch) and/or z-axis heading (yaw) motion of the 3D pointing device 400. In addition, some exemplary embodiments of the present invention can also measure linear movement of the 3D pointing device 400 along the x, y, and z axes to generate cursor movement or other user interface commands. In the exemplary embodiment of FIG. 3, the 3D pointing device 400 includes two buttons 402 and 404 as well as a scroll wheel 406, although other exemplary embodiments will include other physical configurations. According to exemplary embodiments of the present invention, it is anticipated that 3D pointing devices 400 will be held by a user in front of a display 408 and that motion of the 3D pointing device 400 will be translated by the 3D pointing device into output which is usable to interact with the information displayed on display 408, e.g., to move the cursor 410 on the display 408. For example, rotation of the 3D pointing device 400 about the y-axis can be sensed by the 3D pointing device 400 and translated into an output usable by the system to move cursor 410 along the y₂ axis of the display 408. Likewise, rotation of the 3D pointing device 408 about the z-axis can be sensed by the 3D pointing device 400 and translated into an output usable by the system to move cursor 410 along the x₂ axis of the display 408. It will be appreciated that the output of 3D pointing device 400 can be used to interact with the display 408 in a number of ways other than (or in addition to) cursor movement, for example it can control cursor fading, volume or media transport (play, pause, fast-forward and rewind). Input commands may include operations in addition to cursor movement, for example, a zoom in or zoom out on a particular region of a display. A cursor may or may not be visible. Similarly, rotation of the 3D pointing device 400 sensed about the x-axis of 3D pointing device 400 can be used in addition to, or as an alternative to, y-axis and/or z-axis rotation to provide input to a user interface.

According to one purely illustrative exemplary embodiment of the present invention, two rotational sensors 420 and 422 and one accelerometer 424 can be employed as sensors in 3D pointing device 400 as shown in FIG. 4. Although this exemplary embodiment employs inertial sensors it will be appreciated that the present invention is not so limited and examples of other types of sensors which can be used in conjunction with other exemplary embodiments are provided below. The rotational sensors 420 and 422 can, for example, be implemented using ADXRS150 or ADXRS401 sensors made by Analog Devices. It will be appreciated by those skilled in the art that other types of rotational sensors can be employed as rotational sensors 420 and 422 and that the ADXRS150 and ADXRS401 are purely used as an illustrative example. Unlike traditional gyroscopes, these rotational sensors use MEMS technology to provide a resonating mass which is attached to a frame so that it can resonate only along one direction. The resonating mass is displaced when the body to which the sensor is affixed is rotated around the sensor's sensing axis. This displacement can be measured using the Coriolis acceleration effect to determine an angular velocity associated with rotation along the sensing axis. If the rotational sensors 420 and 422 have a single sensing axis (as for example the ADXRS150s), then they can be mounted in the 3D pointing device 400 such that their sensing axes are aligned with the rotations to be measured. For this exemplary embodiment of the present invention, this means that rotational sensor 422 is mounted such that its sensing axis is parallel to the y-axis and that rotational sensor 420 is mounted such that its sensing axis is parallel to the z-axis as shown in FIG. 4. It will be appreciated that different sensor packages may be available which could lead to other exemplary implementations. For example, the two 1-D rotational sensors 420 and 422 could be replaced by a single, 2D rotational sensor package which provides outputs of rotational motion along, e.g., the y and z axes. One exemplary 3-D rotational sensor is the Invensense MPU-3000, although it will be appreciated that other sensors/sensor packages may also be used. There are also sensor packages that have multiple sensor types in the same package, such as the Invensense MPU-6000 which has a 3-axis rotation sensor and a 3-axis accelerometer. The rotational sensors 420, 422 can be 1-D, 2-D or 3-D sensors. The accelerometer 424 can, for example, be a 3-axis linear accelerometer, although a t-axis linear accelerometer could be used by assuming that the device is measuring gravity and mathematically computing the remaining 3^(rd) value. Additionally, the accelerometer(s) and rotational sensor(s) could be packaged together into a single sensor package. A magnetometer (not shown) could be added to the sensor suite, or could replace one or more of the illustrated sensors. The components could be discrete, physical components, or fully or partially integrated with one another. Additional details are provided below with respect to FIG. 9. Other variations of sensors and sensor packages may also be used in conjunction with these exemplary embodiments.

The exemplary embodiments are not limited to the industrial design illustrated in FIGS. 3 and 4, but can instead be deployed in any industrial form factor, another example of which is illustrated as FIG. 5. In the exemplary embodiment of FIG. 5, the 3D pointing device 500 includes a ring-shaped housing 501, two buttons 502 and 504 as well as a scroll wheel 506 and grip 507, although other exemplary embodiments may include other physical configurations. The region 508 which includes the two buttons 502 and 504 and scroll wheel 506 is referred to herein as the “control area” 508, which is disposed on an outer portion of the ring-shaped housing 501. More details regarding this exemplary embodiment can be found in U.S. patent application Ser. No. 11/480,662, entitled “3D Pointing Devices”, filed on Jul. 3, 2006, the disclosure of which is incorporated here by reference. Such devices have numerous applications including, for example, usage in the so-called “10 foot” interface between a sofa and a television in the typical living room as shown in FIG. 6. Therein, as the 3D pointing device 500 moves between different positions, that movement is detected by one or more sensors within 3D pointing device 200 and transmitted to the television 620 (or associated system component, e.g., a set-top box (not shown)). Movement of the 3D pointing device 500 can, for example, be translated into movement of a cursor 640 displayed on the television 620 and which is used to interact with a user interface. Details of an exemplary user interface with which the user can interact via 3D pointing device 500 can be found, for example, in the above-incorporated U.S. patent application Ser. No. 10/768,432 as well as U.S. patent application Ser. No. 11/437,215, entitled “Global Navigation Objects in User Interfaces”, filed on May 19, 2006, the disclosure of which is incorporated here by reference.

One challenge faced in implementing exemplary 3D pointing devices 400 in accordance with these exemplary embodiments is to employ components, e.g., rotational sensors 502 and 504, which are not too costly, while at the same time providing a high degree of correlation between movement of the 3D pointing device 400, a user's expectation regarding how the user interface will react to that particular movement of the 3D pointing device and actual user interface performance in response to that movement. For example, if the 3D pointing device 400 is not moving, the user will likely expect that the cursor ought not to be drifting across the screen. Likewise, if the user rotates the 3D pointing device 400 purely around the y-axis, she or he would likely not expect to see the resulting cursor movement on display 408 contain any significant x-axis component.

To achieve these, and other, aspects of exemplary embodiments of the present invention, various measurements and calculations are performed, e.g., by the handheld device 400, which are used to adjust the outputs of one or more of the sensors 420, 422 and 424 and/or as part of the input used by a processor to determine an appropriate output for the user interface based on the outputs of the sensors 420, 422 and 424. These measurements and calculations are used to compensate for factors which fall broadly into two categories: (1) factors which are intrinsic to the 3D pointing device 400, e.g., errors associated with the particular sensors 420, 422 and 424 used in the device 400 or the way in which the sensors are mounted in the device 400 and (2) factors which are not intrinsic to the 3D pointing device 400, but are instead associated with the manner in which a user is using the 3D pointing device 400, e.g., linear acceleration, tilt, and tremor. Some exemplary techniques for handling these effects are described in the above-incorporated by reference '118 patent. While the '118 patent describes an exemplary technique for compensating for a user's tilt of a device, the tilt compensation mechanism described therein still presumes that the user is generally pointing using a predesigned “front” end of the device. However the following exemplary embodiments provide additional techniques for dynamically determining the forward pointing direction of a device allowing the user to hold the device in any orientation, e.g., a sphere which could be picked up with any point on the spherical surface being the “forward pointing direction”, e.g. always pointing away from the user's wrist. This allows for more comfortable use of the device, use of devices which might not have implied directions, or use devices that have multiple orientations that might be appropriate for holding.

Tilt compensation as described in the '118 patent and dynamic forward direction according to exemplary embodiments described below are complementary to one another. Tilt compensation allows the device to freely rotate around the forward pointing direction without changing the pointing operation. Dynamic forward direction determination allows a user to hold the object in any orientation, and have it work in the same manner. Rotations have 3 degrees of freedom (i.e. yaw, pitch and roll in an Euler representation), so tilt compensations typically allows for changes to one dimension (i.e. roll), while dynamic forward direction determination as described below allows for changes to all three dimensions.

Dynamic Forward Pointing Direction Determination

Turning now to an exemplary embodiment for dynamically determining a forward pointing direction of a device, e.g., a remote control or 3D pointing device, consider that the remote control 400, 500 (or another having a different industrial design) moves through space as shown in FIG. 7. The fixed user frame 701 associated with the remote control can be arbitrarily determined, but the present embodiment presumes that the gravity vector 705 aligns to the user-frame z-axis. Often, the user-frame x-axis is aligned to magnetic north. The remote control in this example moves linearly through space as represented by vector r 703. Typically vector r 703 typically represents the location of the operator's wrist. The remote control device is located at a vector c 704 away from the center of rotation and resides at point p 705 which is also the origin of the remote control body frame 702. The vector c is presumed to be the desired forward direction of pointing.

The nomenclature, axes and variables illustrated in FIG. 7 will be used in the following paragraphs to illustrate various algorithms and mathematical approaches which embodiments can employ to dynamically determine the forward direction of rotation of a device. Additionally, the following notational conventions are defined for the subsequent algorithmic discussion:

Lower case letters represent scalar variables: x, y, z

Lower case bold letters represent vectors: x, y, z

Upper case bold letters represent matrices: X, Y, Z

Vectors are assumed to be column vectors (N×1 matrix)

x y=x·y is the dot product of vectors x and y

∥v∥=√{square root over (v·v)} is the magnitude of vector v

x×y is the cross product of vectors x and y

is the cross product matrix

$v^{\otimes} = \begin{bmatrix} 0 & {- v_{z}} & v_{y} \\ v_{z} & 0 & {- v_{x}} \\ {- v_{y}} & v_{x} & 0 \end{bmatrix}$

X y is the matrix multiplication of matrix X and vector y

X^(T) is the matrix transpose

I is an identity matrix

$\begin{bmatrix} 100 \\ 010 \\ {\,^{+}001} \end{bmatrix}$ $\hat{y} = \frac{y}{y}$ is the unit vector in the direction of y

<q₀, v> is the quaternion with scalar component q₀ and the length 3 vector v

Vector(q)=v where q is the quaternion <q₀, v>

q

p is the quaternion multiplication of q and p

q* is the quaternion conjugate of q: <q₀, v>*=<q₀, −v>

^(b)x is the vector x defined in body-frame coordinates

^(u)x is the vector x defined in user-frame coordinates

Length 2 vector v is assumed to have subcomponents named (v_(x), v_(y))

Length 3 vector v is assumed to have subcomponents named (v_(x), v_(y), v_(z))

{dot over (v)} is the derivative of v

{umlaut over (v)} is the second derivative of v

According to an exemplary embodiment, the remote control measures the motion of the device using the sensors described above (or other sensor packages). The motion processing algorithm being executed by the processor (either in the handheld device itself or in another device in communication with the handheld device) can then converts the raw sensor data into more meaningful forms, such as SI units. The motion processing may remove undesirable sensor characteristics including one or more of variable bias offset (zero rate offset, zero-g offset, zero gauss offset), cross-axis effects, scale variations, non-linearities, temperature effects, and aging effects.

The motion processing then collects data while the user is moving the device to determine the center of rotation. For this exemplary, it is assumed that a single center of rotation exists, although these techniques can be extended to cover situations where multiple centers of rotation exist as will be described in more detail below. As mentioned above, the center of rotation 710 exists at a displacement r 703 from the user frame's origin 711. The remote control device then exists at a displacement c 704 from r 703. Let r be defined in the user frame as ^(u)r and c be defined in the body frame as ^(b)c, where “u” refers to user frame of reference and “b” refers to body frame of reference. Let

$\underset{B\leftarrow U}{Q}$ be the direction cosine matrix (DCM) that defines the body frame relative to the user frame. Then the location of the device, ^(u)p can be written as:

$\begin{matrix} {{\,^{u}p} = {{\,^{u}r} + {{\underset{B\leftarrow U}{Q}}^{T}{\,^{b}c}}}} & (1) \end{matrix}$

By taking the derivative of the equation (1), we find

$\begin{matrix} {{\,^{u}\overset{.}{p}} = {{\,^{u}\overset{.}{r}} + {{{\underset{B\leftarrow U}{\overset{.}{Q}}}^{T}}^{b}c} + {{{\underset{B\leftarrow U}{Q}}^{T}}^{b}\overset{.}{c}}}} & (2) \end{matrix}$

By taking the derivate again, we find:

$\begin{matrix} {{\,^{u}\overset{¨}{p}} = {{\,^{u}\overset{¨}{r}} + {{\underset{B\leftarrow U}{\overset{¨}{Q}}}^{T}{\,^{b}c}} + {2{{\underset{B\leftarrow U}{\overset{.}{Q}}}^{T}}^{b}\overset{.}{c}} + {{{\underset{B\leftarrow U}{Q}}^{T}}^{b}\overset{¨}{c}}}} & (3) \end{matrix}$

The linear acceleration ^(b)a measured by the remote control is given by:

$\begin{matrix} {{\,^{b}a} = {\underset{B\leftarrow U}{Q}\left( {{\,^{u}\overset{¨}{p}} + {\,^{u}g}} \right)}} & (4) \end{matrix}$

where ^(u)g is Earth's gravity, nominally (0, 0, −9.8) m/s².

Substituting ^(u){umlaut over (p)} into this equation yields:

$\begin{matrix} {{\,^{b}a} = {{\underset{B\leftarrow U}{Q}\left( {{\,^{u}\overset{¨}{r}} + {\,^{u}g}} \right)} + {\underset{B\leftarrow U}{Q}{{\underset{B\leftarrow U}{\overset{¨}{Q}}}^{T}}^{b}c} + {2\underset{B\leftarrow U}{Q}{{\underset{B\leftarrow U}{\overset{.}{Q}}}^{T}}^{b}\overset{.}{c}} + {\,^{b}\overset{¨}{c}}}} & (5) \end{matrix}$

The angular velocity matrix and angular acceleration matrix are defined as:

$\begin{matrix} {{{\,^{b}\Omega} = {\underset{B\leftarrow U}{Q}{\underset{B\leftarrow U}{\overset{.}{Q}}}^{T}}}{{\,^{b}\overset{.}{\Omega}} = {{\underset{B\leftarrow U}{\overset{.}{Q}}{\underset{B\leftarrow U}{\overset{.}{Q}}}^{T}} + {\underset{B\leftarrow U}{Q}{\underset{B\leftarrow U}{\overset{¨}{Q}}}^{T}}}}{where}{{\,^{b}\Omega} = \begin{pmatrix} 0 & {- {{}_{}^{}{}_{}^{}}} & {{}_{}^{}{}_{}^{}} \\ {{}_{}^{}{}_{}^{}} & 0 & {- {{}_{}^{}{}_{}^{}}} \\ {- {{}_{}^{}{}_{}^{}}} & {{}_{}^{}{}_{}^{}} & 0 \end{pmatrix}}{{\,^{b}\overset{.}{\Omega}} = \begin{pmatrix} 0 & {- {{}_{}^{}{\omega.}_{}^{}}} & {{}_{}^{}{\omega.}_{}^{}} \\ {{}_{}^{}{\omega.}_{}^{}} & 0 & {- {{}_{}^{}{\omega.}_{}^{}}} \\ {- {{}_{}^{}{\omega.}_{}^{}}} & {{}_{}^{}{\omega.}_{}^{}} & 0 \end{pmatrix}}{{{}_{}^{}{}_{}^{}} = \begin{pmatrix} {{- {\,^{b}{\,{\,\omega_{y}^{2}}}}} - {{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} \\ {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{- {{}_{}^{}{}_{}^{}}} - {{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} \\ {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{- {{}_{}^{}{}_{}^{}}} - {{}_{}^{}{}_{}^{}}} \end{pmatrix}}} & (6) \end{matrix}$

By substitution we can find:

$\begin{matrix} {{\underset{B\leftarrow U}{{\overset{.}{Q}}^{T}} = {{{\underset{B\leftarrow U}{Q}}^{T}}^{b}\Omega}}{\underset{B\leftarrow U}{\overset{.}{Q}} = {\left( {{{\underset{B\leftarrow U}{Q}}^{T}}^{b}\Omega} \right)^{T} = {{{{}_{}^{}{}_{}^{}}\underset{B\leftarrow U}{Q}} = {{- {\,^{b}\Omega}}\;\underset{B\leftarrow U}{Q}}}}}} & (7) \end{matrix}$

And then:

$\begin{matrix} {{{\underset{B\leftarrow U}{Q}{\underset{B\leftarrow U}{\overset{¨}{Q}}}^{T}} = {{\,^{b}\overset{.}{\Omega}} - {\underset{B\leftarrow U}{\overset{.}{Q}}{\underset{B\leftarrow U}{\overset{.}{Q}}}^{T}}}}{{\underset{B\leftarrow U}{Q}{\underset{B\leftarrow U}{\overset{¨}{Q}}}^{T}} = {{\,^{b}\overset{.}{\Omega}} - {\left( {{- {\,^{b}\Omega}}\;\underset{B\leftarrow U}{Q}} \right)\left( {{{\underset{B\leftarrow U}{Q}}^{T}}^{b}\Omega} \right)}}}{{\underset{B\leftarrow U}{Q}{\underset{B\leftarrow U}{\overset{¨}{Q}}}^{T}} = {{\,^{b}\overset{.}{\Omega}} + {{}_{}^{}{}_{}^{}}}}} & (8) \end{matrix}$

Substituting (8) back into the equation (4) for ^(b)a yields

$\begin{matrix} {{\,^{b}a} = {{\underset{B\leftarrow U}{Q}\left( {{\,^{u}\overset{¨}{r}} + {\,^{u}g}} \right)} + {\left( {{\,^{b}\overset{.}{\Omega}} + {{}_{}^{}{}_{}^{}}} \right){\,^{b}c}} + {2{\,^{b}\Omega}{\,^{b}\Omega}{\,^{b}\overset{.}{c}}} + {\,^{b}\overset{¨}{c}}}} & (9) \end{matrix}$

The motion processing unit then estimates ^(b)c, which is the vector form the center of rotation to the origin of the body frame. Alternatively ^(b)c is the point of the center of rotation in body-frame coordinates. Numerous numerical methods exist to perform this estimation. Although not necessary, the present embodiment makes several assumptions to simplify computational complexity. Since ^(u){umlaut over (r)}<<^(u)g on average, assume that ^(u){umlaut over (r)}=0. Since the motion processing is attempting to find a single, consistent center of rotation, assume that ^(b)ċ=0 and ^(b){umlaut over (c)}=0. The equation (9) then simplifies to:

$\begin{matrix} {{{\,^{b}a} = {{\underset{B\leftarrow U}{Q}{\,^{u}g}} + {\left( {{\,^{b}\overset{.}{\Omega}} + {{}_{}^{}{}_{}^{}}} \right){\,^{b}c}}}}{\,^{b}c} = {\left( {{\,^{b}\overset{.}{\Omega}} + {{}_{}^{}{}_{}^{}}} \right)^{- 1}\left( {{\,^{b}a} - {\underset{B\leftarrow U}{Q}{\,^{u}g}}} \right)}} & (10) \end{matrix}$ This equation (10) loses precision as the quantity (^(b){dot over (Ω)}+^(b)Ω²) approaches zero or loses rank. In other words, this equation produces better estimates when the device is experiencing greater angular motions, either angular velocity or angular acceleration.

Using the measurement of angular velocity from, e.g., sensors 420,422, the processor can compute ^(b){dot over (Ω)}+^(b)Ω². The value for

$\underset{B\leftarrow U}{Q}$ can be computed using a traditional sensor fusion method. Multiple values for c can be combined to produce an estimate. The combination of multiple c values may occur, for example, using one or more of various methods including classical low-pass filtering, adaptive filtering, Kalman filtering or Bayesian filtering. The present embodiment uses a Kalman filter where the measurement error is computed from the magnitude of the ^(b){dot over (Ω)}+^(b)Ω² term.

The estimate for c which is calculated using, for example, equation (10) is presumed to be the desired forward direction of pointing. If the linear accelerometer is offset from the center of the device, the offset may be added to this value of c to account for the sensor displacement. Although the present embodiment performs the filtering on the length three vector c, other vector representations including spherical coordinates could be used.

The previous exemplary embodiment used the value for

$\underset{B\leftarrow U}{Q}$ in the calculation.

In many motion devices, this value is not accurate. A second embodiment eliminates the dependency on

$\underset{B\leftarrow U}{Q}$ by combining two different measurements separated by a short period of time. Since the system repeatedly measures^(b)Ω, the system can compute the change in Q through integration. Using simple Euler integration,

$\begin{matrix} {{{\underset{U\leftarrow B}{Q}(n)} = {{\underset{U\leftarrow B}{Q}\left( {n - 1} \right)} + {{\underset{U\leftarrow B}{\overset{.}{Q}}(n)}\Delta\; t}}}{{\underset{U\leftarrow B}{Q}(n)} = {{\underset{U\leftarrow B}{Q}\left( {n - 1} \right)} + {{{}_{}^{}{}_{}^{}}\Delta\; t{\underset{U\leftarrow B}{Q}\left( {n - 1} \right)}}}}{{\underset{B\leftarrow U}{Q}(n)} = {\left( {I + {{{}_{}^{}{}_{}^{}}\Delta\; t}} \right){\underset{B\leftarrow U}{Q}\left( {n - 1} \right)}}}} & (11) \end{matrix}$ Those skilled in the art will note that this equation (11) also presumes a small angle approximation. The resulting integrated Q may not be fully normalized.

This second embodiment uses the average angular velocity to perform the integration which results in pseudo-trapezoidal integration:

$\begin{matrix} {{\,^{b}\Omega} = \left( \frac{{{}_{}^{}{}_{}^{}} + {{}_{}^{}{}_{}^{}}}{2\;} \right)} & (12) \end{matrix}$ By capturing two measurements and using the average angular velocity to perform the integration, we have:

$\begin{matrix} {{{{}_{}^{}{}_{}^{}} = {{\underset{B\leftarrow U}{Q}{\,^{u}g}} + {\left( {{{}_{}^{}{\Omega.}_{}^{}} + {{}_{}^{}{}_{}^{}}} \right){\,^{b}c}}}}{{{}_{}^{}{}_{}^{}} = {{\left( {I + {{{}_{}^{}{}_{}^{}}\Delta\; t}} \right)\underset{B\leftarrow U}{\, Q}{\,^{u}g}} + {\left( {{{}_{}^{}{\Omega.}_{}^{}} + {{}_{}^{}{}_{}^{}}} \right){\,^{b}c}}}}} & (13) \end{matrix}$ By solving the first equation for Q, we find:

$\begin{matrix} {{\underset{B\leftarrow U}{Q}{\,^{u}g}} = {{\,{\,{{}_{}^{}{}_{}^{}}}} - {\left( {{\,{\,{{}_{}^{}{\Omega.}_{}^{}}}} + {{}_{}^{}{}_{}^{}}} \right){\,^{b}c}}}} & (14) \end{matrix}$ Substituting this value into ^(b)a₂ yields: ^(b) a ₂=(I+ ^(b)Ω^(T) Δt)(^(b) a ₁−(^(b){dot over (Ω)}₁+^(b)Ω₁ ²)^(b) c)+(^(b){dot over (Ω)}₂+^(b)Ω₂ ²)^(b) _(c) ^(b) a ₂=(I+ ^(b)Ω^(T) Δt)^(b) a ₁−(I+ ^(b)Ω^(T) Δt)(^(b){dot over (Ω)}₁+^(b)Ω₁ ²)^(b) c+(^(b){dot over (Ω)}₂+^(b)Ω₂ ²)^(b) c ^(b) a ₂=(I+ ^(b)Ω^(T) Δt)^(b) a ₁+((^(b){dot over (Ω)}₂+^(b)Ω₂ ²)−(I+ ^(b)Ω^(T) Δt)(^(b){dot over (Ω)}₁+^(b)Ω₁ ²))^(b) c ^(b) c=((^(b){dot over (Ω)}₂+^(b)Ω₂ ²)−(I+ ^(b)Ω^(T) Δt)(^(b){dot over (Ω)}₁+^(b)Ω₁ ²))⁻¹(^(b) a ₂−(I+ ^(b)Ω^(T) Δt)^(b) a ₁)  (15) which thus provides another technique for determining the center of rotation of the device ^(b)c.

This formulation in equation (15) is more prone to measurement noise than the previous embodiment, but no longer depends upon the angular position estimate. Since the estimate of the forward direction of pointing is generally not time critical, additional filtering may be applied before this computation to minimize the error introduced by sensor noise. If filtering is applied, care should be taken to ensure that the different motion measurements are aligned in time.

The previous two embodiments used the center of rotation to determine the forward direction of pointing. A third embodiment uses the average angular position of the device to determine the forward direction of pointing. The forward direction could be dynamically optimized by using the short-term history of where the device is pointing in order to minimize pointing distortion and maximize resolution. Since the screen is of a fixed size, in the short term there will be a relatively fixed region of space that maps to the screen. With user-frame orientation compensation, the least distortion and maximum resolution is obtained when average pitch of the device is 0 and the average yaw of the device is 0. If the pitch of the forward direction is dynamically adjusted based on the short term history, then the average pitch can be set to always be near zero. The yaw can be determined in the same way. The estimate for c is computed such that the resulting coordinate transform discussed below maps c to the center of the screen.

For all three embodiments, the estimate for c, optionally adjusted by the sensor offset, can be used as the new forward direction of pointing. The motion processing then uses the new forward direction of pointing to adjust the remote control's coordinate system. The motion processing computes a coordinate rotation such that the original body-frame x-axis becomes the newly determine forward direction of pointing. This definition of the coordinate transform does not specify theta, the rotation angle about the new forward direction of pointing. When used within a system that is also an orientation compensation system, the value chosen for this rotation angle is of minimal effect. The present embodiment determines theta to minimize the amount of rotation around the newly determined forward direction of pointing. This new coordinate system is then used as the body-frame of reference for further cursor processing including orientation compensation, pointer response curves, gain adjustment, button motion suppression and pointer ballistics. The cursor processing may also include conversion to absolute coordinates and pointer alignment.

Once the motion processing described above is completed, the resulting cursor data is processed by the host machine, e.g., system controller 228 which is connected wirelessly or via wireline to the remote control device. The host machine typically includes an operating system that handles the cursor management. The host machine then displays the cursor on the display 212.

Numerous variations and permutations of the afore-described exemplary embodiments are possible and within the scope of the present invention. For example, although the center of rotation used to determine the forward direction of pointing in the afore-described embodiments is in the body frame of reference, the center of rotation calculation can alternatively be performed in the user frame. The motion processing system may also perform tremor cancellation. Additional sensors may be used including cameras, optical sensors (including triangulation, trilateration, multilateration, time difference of arrival and angular gradient), ultrasound (including triangulation, trilateration, multilateration, time difference of arrival and angular gradient), RF (including triangulation, trilateration, multilateration, time difference of arrival and angular gradient), magnetic fields (including triangulation, trilateration, multilateration, time difference of arrival and angular gradient), or any sensor system that can derive an estimate for

$\underset{B\leftarrow U}{Q}$ or Ω and g.

The motion processing may be extended to calculate multiply linked rotation centers instead of a single center of rotation. The present embodiment presumes that a majority of angular motion occurs from the wrist, and the center of rotation should be very close to the user's wrist joint. Some users may use more motion of the elbow and shoulder. By calculating the multiply linked rotation centers, the estimate of the final wrist center can be more accurate. Most applications will still use the vector from the wrist center to the device as the forward direction of pointing, but other vectors may be selected to best match the desired application. The motion processing may be extended to differentiate the multiple centers of rotation and use them differently when calculating the dynamic forward direction. For example, by differentiating between finger movement and wrist rotation the wrist rotation will be in the pointing direction, and the finger movement will likely be perpendicular to the pointing direction.

Where Euler integration is used, alternative integration methods such as trapezoidal integration or polynomial integration could be used to improve the accuracy. Additional measurements may be made to determine if the assumptions are valid. If the assumptions are not valid, then the estimate can be ignore or given less weight. With additional processing complexity, the assumptions ^(u){umlaut over (r)}=0, ^(b)ċ=0 and ^(b){umlaut over (c)}=0 need not be made. The equations are specified using direction cosine matrices (DCMs) to represent rotations. Other representations may be used including Euler angles, Pauli spin matrices, axis-angle and quaternions.

Although the afore-described embodiments refer to the device whose forward pointing direction is dynamically determine and that measures motion as a “remote control”, it will be appreciated by those skilled in the art that the device could have any form factor or perform any function(s) in addition to pointing. The new coordinate system could generate the y-axis as the cross product of gravity ^(b)g and the forward direction of pointing ^(b)c, which will work as long as ^(b)c is not in the direction of ^(b)g.

Based on the foregoing, an exemplary method for determining a forward pointing direction of a handheld device can include the steps illustrated in the flow chart of FIG. 8. Therein, at step 800, a processor is configured to receive sensor outputs associated with linear acceleration of a device and angular velocity of the device. From these outputs, the processor is further configured to determine a forward pointing direction of the device at step 802. According to some exemplary embodiments, determining the forward pointing direction of the device involves calculating a center of rotation of the device, which is used to determine the forward pointing direction of the device by computing a vector between the center of rotation and an origin point of the body frame of reference of the device at step 802. According to other embodiments, other information can be used to derive the forward pointing direction of the device, e.g., the average angular position of the device.

Having provided a description of dynamic forward pointing direction determination in exemplary 3D pointing devices according to the afore-described exemplary embodiments, FIG. 9 illustrates an exemplary hardware architecture associated with such 3D pointing devices. Therein, a processor 1000 communicates with other elements of the 3D pointing device including a flash memory 1001, scroll wheel 1002, JTAG 1004, LEDs 1006, switch matrix 1008, IR photodetector 1010, rotational sensor(s) 1012, accelerometer 1014 and transceiver 1016. The flash memory device 1001 can be used by processor 1000 to store various programs and/or data for use in operating the 3D pointing device, e.g., bias estimates as described above. The scroll wheel 1002 is an optional input component which enables a user to provide input to the interface by rotating the scroll wheel 1002 clockwise or counterclockwise. JTAG 1004 provides the programming and debugging interface to the processor. LEDs 1006 provide visual feedback to a user, for example, when a button is pressed. Switch matrix 1008 receives inputs, e.g., indications that a button on the 3D pointing device has been depressed or released, that are then passed on to processor 1000. The optional IR photodetector 1010 can be provided to enable the exemplary free space pointing device to learn IR codes from other remote controls. Rotational sensors 1012 provide readings to processor 1000 regarding, e.g., the y-axis and z-axis rotation (angular rate) of the 3D pointing device as described above. Accelerometer 1014 provides readings to processor 100 regarding the linear acceleration of the 3D pointing device which can be used, e.g., to perform tilt compensation and to compensate for errors which linear acceleration introduces into the rotational readings generated by rotational sensor(s) 1012, as well as to compute the forward pointing direction of the device as described above. Transceiver 1016 is used to communicate information to and from 3D pointing device, e.g., to the system controller 228 or to a processor associated with a computer. The transceiver 1016 can be a wireless transceiver, e.g., operating in accordance with the Bluetooth standards for short-range wireless communication or an infrared transceiver. Alternatively, 3D pointing device according to these exemplary embodiments can communicate with systems via a wireline connection. A magnetometer 1018 may also, optionally be included in the device either together with the accelerometer 1014 and rotational sensors 1012, or as a substitute for one or more of those sensors. The magnetometer can be used in multiple ways. Among these are to improve the calculation of

$\underset{B\leftarrow U}{Q},$ to improve the gyroscope or rotational sensor measurements, or used to replace the gyroscope or rotational sensors by detecting changes in the magnetic field.

Systems and methods for processing data according to exemplary embodiments of the present invention can be performed by one or more processors executing sequences of instructions contained in a memory device. Such instructions may be read into the memory device from other computer-readable mediums such as secondary data storage device(s). Execution of the sequences of instructions contained in the memory device causes the processor to operate, for example, as described above. In alternative embodiments, hard-wire circuitry may be used in place of or in combination with software instructions to implement the present invention. Such software may run on a processor which is housed within the device, e.g., a 3D pointing device or other device, which contains the sensors or the software may run on a processor or computer housed within another device, e.g., a system controller, a game console, a personal computer, etc., which is in communication with the device containing the sensors. In such a case, data may be transferred via wireline or wirelessly between the device containing the sensors and the device containing the processor which runs the software which performs the dynamic forward pointing direction estimation and compensation as described above. According to other exemplary embodiments, some of the processing described above with respect to forward pointing direction determination may be performed in the device containing the sensors, while the remainder of the processing is performed in a second device after receipt of the partially processed data from the device containing the sensors.

Although the foregoing exemplary embodiments relate to sensing packages including one or more rotational sensors and an accelerometer, forward pointing direction determination techniques according to these exemplary embodiments are not limited to only these types of sensors. Instead forward pointing direction determination estimation techniques as described herein can be applied to devices which include, for example, only accelerometer(s), optical and inertial sensors (e.g., a rotational sensor, a gyroscope or an accelerometer), a magnetometer and an inertial sensor (e.g., a rotational sensor, a gyroscope or an accelerometer), a magnetometer and an optical sensor, or other sensor combinations. Additionally, although exemplary embodiments described herein relate to forward pointing direction determination in the context of 3D pointing devices and applications, such techniques are not so limited and may be employed in methods and devices associated with other applications, e.g., medical applications, gaming, cameras, military applications, mobile phones, etc.

The above-described exemplary embodiments are intended to be illustrative in all respects, rather than restrictive, of the present invention. Thus the present invention is capable of many variations in detailed implementation that can be derived from the description contained herein by a person skilled in the art. All such variations and modifications are considered to be within the scope and spirit of the present invention as defined by the following claims. No element, act, or instruction used in the description of the present application should be construed as critical or essential to the invention unless explicitly described as such. Also, as used herein, the article “a” is intended to include one or more items. 

What is claimed is:
 1. A device for controlling a user interface, the device comprising: an accelerometer for sensing an acceleration of said device and outputting at least one acceleration output associated therewith; at least one sensor for sensing rotation of said device and outputting at least one angular velocity output associated therewith; and a processing unit for processing said acceleration output and said at least one angular velocity output to calculate a center of rotation of said device and determine a forward pointing direction of said device based on said determined center of rotation of said device; wherein the control of the user interface is a function of said forward pointing direction of the device.
 2. The device of claim 1, wherein the calculation of a center of rotation of said device uses the processed outputs and a gravitational constant.
 3. The device of claim 2, wherein said calculation uses: an angular velocity matrix based upon said angular velocity output; an angular acceleration matrix based upon said angular velocity output; a direction cosine matrix based upon said angular velocity matrix and said angular acceleration matrix for defining said device frame of reference relative to an earth frame of reference; and a linear acceleration based on said acceleration output.
 4. The device of claim 1, wherein said processing comprises converting raw sensor data into International System (SI) unit data.
 5. The device of claim 4, wherein said SI unit data is filtered to remove undesirable sensor characteristics comprising at least one of variable bias offset, cross-axis effects, scale variations, non-linearities, temperature effects and aging effects.
 6. The device of claim 5, further comprising a radio frequency (RF) transmitter communicatively connected to said processing unit.
 7. The device of claim 6, wherein said RF transmitter is configured to transmit said forward direction calculation result to a host machine.
 8. The device of claim 6, wherein said RF transmitter is configured to transmit filtered data to a host machine for use by said host machine to determine a forward direction of said device based on a calculation of a center of rotation of said device using said filtered data and a gravitational constant.
 9. A method for determining a forward pointing direction of a user interface device being held by a user to provide input to a user interface, said method comprising: collecting data associated with said device's acceleration and rotation while said device is in motion; and calculating of a center of rotation of said device based on the collected data and determining said forward pointing direction of said device based on said calculated center of rotation of said device; wherein the input to said user interface is based on said determined forward pointing direction of the device.
 10. The method of claim 9, further comprising: filtering said data to remove undesirable sensor characteristics.
 11. The method of claim 10, wherein said undesirable sensor characteristics comprises at least one of variable bias offset, cross-axis effects, scale variations, non-linearities, temperature effects and aging effects.
 12. The method of claim 9, wherein the calculating of said center of rotation of the device comprises calculating: ${{\,^{b}c} = {\left( {{\,^{b}\overset{.}{\Omega}} + {{}_{}^{}{}_{}^{}}} \right)\left( {{\,^{b}a} - {\underset{B\leftarrow U}{Q}{\,^{u}g}}} \right)}},$ where: ^(b){dot over (Ω)} is an angular acceleration matrix associated with said device in a body frame of reference, ^(b)Ω² is a square of an angular velocity matrix associated with said device in said body frame of reference, ^(b)a is a linear acceleration associated with said device in said body frame of reference, $\underset{B->U}{Q}$ is a direction cosine matrix defining said body frame of reference relative to a user frame of reference and ^(u)g is earth's gravitational constant associated with said user frame of reference.
 13. The method of claim 12, wherein said ^(b){dot over (Ω)} is: ${{{\,^{b}\overset{.}{\Omega}}\,} = \begin{pmatrix} 0 & {- {{}_{}^{}{\omega.}_{}^{}}} & {{}_{}^{}{\omega.}_{}^{}} \\ {{}_{}^{}{\omega.}_{}^{}} & 0 & {- {{}_{}^{}{\omega.}_{}^{}}} \\ {- {{}_{}^{}{\omega.}_{}^{}}} & {{}_{}^{}{\omega.}_{}^{}} & 0 \end{pmatrix}},$ where: ^(b){dot over (ω)}_(x) is the x component of the angular acceleration of said device in said body frame of reference, ^(b){dot over (ω)}_(y) is the y component of the angular acceleration of said device in said body frame of reference and ^(b){dot over (ω)}_(z) is the z component of the angular acceleration of said device in said body frame of reference.
 14. The method of claim 12 wherein said ^(b)Ω² is: ${{{}_{}^{}{}_{}^{}} = \left( {\begin{matrix} {{- {{}_{}^{}{}_{}^{}}} - {{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} \\ {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{- {{}_{}^{}{}_{}^{}}} - {{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} \\ {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{{}_{}^{}{}_{}^{}}{{}_{}^{}{}_{}^{}}} & {{- {{}_{}^{}{}_{}^{}}} - {{}_{}^{}{}_{}^{}}} \end{matrix}\,} \right)},$ where: ^(b)ω_(x) is the x component of the angular velocity of said device in said body frame of reference, ^(b)ω_(y) is the y component of the angular velocity of said device in said body frame of reference and ^(b)ω_(z) is the z component of the angular velocity of said device in said body frame of reference.
 15. The method of claim 12 wherein multiple calculations of said device's center of rotation vector are combined to optimize the center of rotation vector calculation.
 16. The method of claim 15 wherein said combining comprises at least one of low-pass filtering, Kalman filtering and Bayesian filtering.
 17. The method of claim 12, wherein said center of rotation vector calculation result is offset based on an offset value of an accelerometer, associated with said device, from a center of said device.
 18. The method of claim 12, wherein said body frame of reference is adjusted based on calculating said forward direction.
 19. The method of claim 9, wherein said calculating a center of rotation of the device comprises calculating:  ^(b)c = ((Ω. + ) − (I + Δ t)(Ω. + ))⁻¹( − (I + Δ t)), where: ^(b){dot over (Ω)}₁ is an angular acceleration matrix of a first sample associated with said device in a body frame of reference, ^(b){dot over (Ω)}₂ is an angular acceleration matrix of a second sample associated with said device in a body frame of reference, ^(b)Ω₁ ² is the square of the angular velocity matrix of said first sample associated with said device in said body frame of reference, ^(b)Ω₂ ² is the square of the angular velocity matrix of said second sample associated with said device in said body frame of reference, ^(b)a₁ is a linear acceleration of said first sample associated with said device in said body frame of reference, ^(b)a₂ is a linear acceleration of said second sample associated with said device in said body frame of reference, ^(b)Ω^(T)Δt is the average angular velocity between said first sample and said second sample and I is an identity matrix. 